//
//  RongGaoGit.m
//  RONGAO
//
//  Created by ZhangYeKun on 2017/2/27.
//  Copyright © 2017年 wei wang. All rights reserved.
//

#import "RongGaoGit.h"
#import "NSObject+FIDProperty.h"

NSString * const kDoorStatusModel = @"doorStatusModel";
NSString * const kDoorUserModel = @"doorUserModel";

@implementation RongGaoGit

+ (void)saveBlueContentModel:(BlueContentModel *)contentModel{

    SAVE_OBJECT([contentModel modelToDictionary], kBlueContentModel)
}

+(BlueContentModel *)getBlueContenModel{

    BlueContentModel *model = [BlueContentModel yy_modelWithDictionary:EXRACT_OBJECT(kBlueContentModel)];
    return model;
}

+ (void)saveDoorStatusModel:(DoorStatusModel *)doorStatusModel{
    SAVE_OBJECT([doorStatusModel modelToDictionary], kDoorStatusModel)
}


+ (DoorStatusModel *)getDoorStatusModel{
    DoorStatusModel *model = [DoorStatusModel yy_modelWithDictionary:EXRACT_OBJECT(kDoorStatusModel)];
    if (model == nil) {
        model = [[DoorStatusModel alloc]init];
    }
    return model;
}

@end
